package com.hy.wsroom.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.web.socket.WebSocketSession;

import java.time.LocalDateTime;

/**
 * 客户端
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Client {
    private String id;

    private WebSocketSession session;

    // 最后活跃时间
    private LocalDateTime lastActiveTime;
}
